<template>
  <div>
    <a-card title="地块所属地证信息">
        <landFormTemplate :landResourceFormDataJson = "landResourceFormData" ref="landForm"></landFormTemplate>
    </a-card>
    <!-- fixed footer toolbar -->
    <footer-tool-bar>
      <a-button type="primary" :loading="loading" htmlType="submit" @click="saveFormData">提交</a-button>
    </footer-tool-bar>
  </div>
</template>

<script>

  import FooterToolBar from '@/components/tools/FooterToolBar'
  import cities from '@/db/cities'

  import landFormTemplate from './land-form-template'

  export default {
    name: "AddLandReaource",
    components: {
      FooterToolBar,
      landFormTemplate
    },
    data() {
      return {
        options:cities,
        loading: false,
        fileImgList:"",
        landResourceFormData:{
          landId:"",
          licenseNum:"",
          licenseType:"",
          imgMap:"",
          landUser:"",
          mapNum:"",
          landTypeUse:"",
          useEndTime:"",
          sendBranch:"",
          useArea:"",
          duYouArea:"",
          fenTanArea:"",
          createDate:"",
          createPeople:"",
          landType:"",
          wordUrl:"",
          state:"待审核",
        },

      }
    },
    methods: {
      handleDivisonChange(e){

      },

      saveFormData(){
        this.$refs.landForm.saveFormData();
      }
    },
  }
</script>

<style lang="scss" scoped>
  .card {
    margin-bottom: 24px;
  }
</style>